import { BaseMessage } from "../../../../../extensions/phoenix-plugin-client/assets/core/net/message/message";
import { OpcodeApp } from "../../define/opcode.define";
import proto from "../../protoc/ts/proto_app.js";


export class C2SMessageActiveRoom extends BaseMessage {
    
    constructor(){
        super(OpcodeApp.Opcode_CS_ACTIVE_ROOM);
        this.messageEntity = proto.c2s_ActiveRoom.create();
    }

    Encode(): Uint8Array {
        if (!this.messageEntity) {
            return new Uint8Array();
        }
        return proto.c2s_ActiveRoom.encode(this.messageEntity).finish();
    }
}